Fluent Assertions Documentation
FluentAssertions Assembly / FluentAssertions.Collections Namespace / GenericCollectionAssertions<TCollection,T,TAssertions> Class / NotBeInDescendingOrder Method / NotBeInDescendingOrder(String,Object[]) Method
A formatted phrase as is supported by System.String.Format(System.String,System.Object[]) explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically.
Zero or more objects to format using the placeholders in because.
In This Topic
    NotBeInDescendingOrder(String,Object[]) Method
    In This Topic
    Asserts the current collection does not have all elements in descending order. Elements are compared using their System.IComparable.CompareTo(System.Object) implementation.
    Syntax
    public AndConstraint<TAssertions> NotBeInDescendingOrder( 
       string because,
       params object[] becauseArgs
    )

    Parameters

    because
    A formatted phrase as is supported by System.String.Format(System.String,System.Object[]) explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically.
    becauseArgs
    Zero or more objects to format using the placeholders in because.
    Exceptions
    ExceptionDescription
    because
    Permissions
    PermissionDescription
    because
    Remarks
    Empty and single element collections are considered to be ordered both in ascending and descending order at the same time.
    Example
    because
    Supported Frameworks
    because
    See Also